import pymysql

class DictData:
    def __init__(self):
        self.kwargs={
            "user":"root",
            "password": "123456",
            "database": "dict",
            "charset": "utf8"
        }
        self.db = pymysql.connect( **self.kwargs )
        self.cur = self.db.cursor()

    def close(self):
        self.cur.close()
        self.db.close()

